
//起别名配置,根据不同的脚手架版本来用，我这里是3+，如果是2+的话可以百度
var path = require('path')
function resolve (dir) {
    console.log(dir)
 return path.join(__dirname, dir)
}
module.exports = {
 chainWebpack: config => {
  config.resolve.alias
   .set('@',resolve('src'))
   .set('css',resolve('src/assets/css'))
   .set('views', resolve('src/views'))
   .set('components', resolve('src/components')) // key,value自行定义，比如.set('@@', resolve('src/components'),支持链式调用)
 }
}

